package com.yanqu.road.server.cross3server.cmd.activity.union;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.ChannelTonBingProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.connect.CrossAgentLinkedControl;
import com.yanqu.road.server.logic.MessageHelper;
import com.yanqu.road.server.protocol.Cross3Protocol;
import com.yanqu.road.server.protocol.CrossProtocol;
import com.yanqu.road.utils.RandomHelper;
import com.yanqu.road.utils.YanQuMessageUtils;

import java.util.ArrayList;
import java.util.List;


@Cmd(code = Cross3Protocol.C3_ACTIVITY_GET_UNION_UPDATE, desc = "")
public class Cross3UpdateUnionReqCmd extends CrossCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        ChannelTonBingProto.ChannelGetUnionUpdateReqMsg reqMsg = ChannelTonBingProto.ChannelGetUnionUpdateReqMsg.parseFrom(packet.getBytes());
        MessageHelper.sendPacket(reqMsg.getGameServerId(),0,YanQuMessageUtils.buildMessage(CrossProtocol.C3_CHANNEL_ACTIVITY_GET_UNION_REQ, reqMsg));
    }

    @Override
    public void sendData() {

    }

}
